package com.yandong.boot.subject.application.controller;

import com.yandong.boot.subject.basic.entity.SubjectCategory;
import com.yandong.boot.subject.basic.service.SubjectCategoryService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ClassName Description TODO
 * Author yandong_cao
 * @Date 2025/6/8 18:12
 * @Version 1.0
 **/
@RestController
public class SubjectController {
    @Resource
    private SubjectCategoryService subjectCategoryService;
    @GetMapping("/test")
    public String getSubject(){
        SubjectCategory subjectCategory = subjectCategoryService.queryById(1L);
        return subjectCategory.getCategoryName();
    }
}
